#!/bin/bash

LOCAL_ROOT='/cygdrive/d/Dev/Android/eagle-android-projs/hss7/platform'
PATH_REMOTE='ssh://10.193.72.162/localrepo/a18238/hss7/'
LOCAL_APPS[0]="packages/apps/Settings"
LOCAL_APPS[1]="motorola/packages/blur"

function update_src {
    echo
    echo update $PATHAPP ...
    cd $LOCAL_ROOT/$PATHAPP
    git pull $PATH_REMOTE/$PATHAPP
}

git config --global http.proxy --unset
for var in ${LOCAL_APPS[@]}; do
    PATHAPP=$var
    update_src
done
